package com.yaorange.dao;


import com.yaorange.base.BaseMapper;
import com.yaorange.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface CustomerMapper extends BaseMapper<Customer> {
    List<String> selectPhonesIn(@Param("phones") Set<String> importCustomerPhones);

    List<Map<String, Object>> selectRosterList(Integer empId);

    List<Customer> selectRosterCustomerByXml(String rosterName);

    int updateCustomerByIds(@Param("ids")List<Integer> customerIds, @Param("deptId")Integer deptId);

    int updateCustomerByRosterName(@Param("rosterName")String rosterName, @Param("deptId")Integer deptId);

    List<Map<String, Object>> selectWeeklyData(Integer addType);


    List<Map<String, Object>> selectYearAndMonthData(@Param("addType") int addType,@Param("monthValue") String monthValue);

    List<Customer> selectNewOrderByXml(Integer empId);

    List<Customer> selectFollowByXml(Integer empId);

    int updateVisibilityByXml(Integer customerId);

    List<Customer> selectValidByXml(Integer empId);

    Customer selectCustomerByXml(Integer id);

    List<Customer> selectByDeptId(Integer deptId);

    List<Customer> selectInvalidByDeptId(Integer deptId);

    //已签单客户数据获取
    List<Customer> selectSignedCustomer();

    Customer selectSignedCustomerByXml(Integer id);
}
